﻿
@using Shop.Bll;
@using System.Data;
@using Shop.Entity;
@using Shop.Help;
@using Shop.Bll;
@using Webdiyer.WebControls.Mvc
@{
    ViewBag.Title = "List";
    Layout = null;
    string actionString = RoleLogic.GetPowerStr("ManagerRole", ManagerLogic.GetLoginInfo().ManagerRoleGuid);
}
@model  PagedList<DataRow>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="/Scripts/jquery-1.10.2.min.js"></script>
    <link href="/Content/admin/css/bootstrap.min.css" rel="stylesheet" />
    <script src="~/Content/MvcPager/MvcPager.js"></script>
</head>
<body>
    <div class="container-fluid">
        <ol class="breadcrumb">
            <li><a href="/set/admin/center">首页></a></li>
            <li><a href="#">系统设置></a></li>
            <li class="active">角色权限</li>
        </ol>
        <div class="portlet-body">
            @if (actionString.Contains("Add"))
            {
                <div class="navbar-form navbar-left" role="search" style="padding-left:0px;">
                    <button type="submit" class="btn btn-primary btn-sm " data-toggle="modal" onclick="window.location.href='/set/role/add'">
                        <span class="glyphicon glyphicon-plus" aria-hidden="true">新增</span>
                    </button>
                </div>
            }

            <form class="navbar-form navbar-left" id="formSearch" role="form" action="/systemset/role/List">
                <input type="hidden" name="PageSize" value="15" />
                <div class="form-group">
                    @Html.DropDownList("Business", ViewData["Business"] as IEnumerable<SelectListItem>, "-所属商户-", new { id = "Category", @class = "form-control input-sm" })
                </div>
                <div class="form-group">
                    <input type="text" class="form-control input-sm" id="SearchTitle" name="title" placeholder="请输入权限名称" />
                </div>
                <button type="submit" class="btn btn-primary btn-sm ">
                    <span class="glyphicon glyphicon-zoom-in" aria-hidden="true"></span>&nbsp;搜索
                </button>
            </form>
            <div id="divTable">
                @Html.Partial("_Table", Model)
                @{Html.RegisterMvcPagerScriptResource();}
            </div>
        </div>
        <script src="/Content/admin/js/bootstrap.min.js"></script>
        <script src="/Content/LwsJS/List.js"></script>
        <script>

            function PageSizeChange() {
                $("input[name='PageSize']").val($("#PageSize").val());
                window.location.href = '/set/role/list?PageSize=' + $("input[name='PageSize']").val();
            }
        </script>
    </div>
</body>
</html>
